package com.example.testapplication;

import io.reactivex.Observable;
import retrofit2.Call;
import retrofit2.http.Field;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;

/**
 * @author wwq on 2019/7/30  09:50.
 */
public interface Reception {
    @FormUrlEncoded
    @POST("/api/quiz/gold/detail/simple")
    @Headers({"Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJORTA1NmRiZmU5LTFkZjgtNDc5Ny04ZWQwLTcyNjEwMDUwZjJhZSIsImNyZWF0ZWQiOjE1NjQ0NTI3ODA3NTMsImV4cCI6MTU2NTA1NzU4MH0._z9oQOZAbn4IyDG_MyZjh-4oJUgRUBJ08mvFgWwnrSuGiTxsqWsHAKm0ZgK5IgCF2iCwGLECs6EEFAJP6shFxg"
            , "Accept: application/json, text/javascript, */*; q=0.01"})
    Call<QuestionDetail> getSimple(@Field("goldQuizId") String goldQuizId);

    @FormUrlEncoded
    @POST("/api/makeAnswer/gold/goldQuiz/listAnswer")
    @Headers({"Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJORTA1NmRiZmU5LTFkZjgtNDc5Ny04ZWQwLTcyNjEwMDUwZjJhZSIsImNyZWF0ZWQiOjE1NjQ0NTI3ODA3NTMsImV4cCI6MTU2NTA1NzU4MH0._z9oQOZAbn4IyDG_MyZjh-4oJUgRUBJ08mvFgWwnrSuGiTxsqWsHAKm0ZgK5IgCF2iCwGLECs6EEFAJP6shFxg"
            , "Accept: application/json, text/javascript, */*; q=0.01"})
    Call<QuestionListAnswer> getListAnswer(@Field("goldQuizId") String goldQuizId, @Field("pageCurrent") int pageCurrent, @Field("pageSize") int pageSize);

    @FormUrlEncoded
    @POST("/api/quiz/gold/detail/simple")
    @Headers({"Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJORTA1NmRiZmU5LTFkZjgtNDc5Ny04ZWQwLTcyNjEwMDUwZjJhZSIsImNyZWF0ZWQiOjE1NjQ0NTI3ODA3NTMsImV4cCI6MTU2NTA1NzU4MH0._z9oQOZAbn4IyDG_MyZjh-4oJUgRUBJ08mvFgWwnrSuGiTxsqWsHAKm0ZgK5IgCF2iCwGLECs6EEFAJP6shFxg"
            , "Accept: application/json, text/javascript, */*; q=0.01"})
    Observable<QuestionDetail> getSimpleWithRxJava(@Field("goldQuizId") String goldQuizId);

    @FormUrlEncoded
    @POST("/api/makeAnswer/gold/goldQuiz/listAnswer")
    @Headers({"Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJORTA1NmRiZmU5LTFkZjgtNDc5Ny04ZWQwLTcyNjEwMDUwZjJhZSIsImNyZWF0ZWQiOjE1NjQ0NTI3ODA3NTMsImV4cCI6MTU2NTA1NzU4MH0._z9oQOZAbn4IyDG_MyZjh-4oJUgRUBJ08mvFgWwnrSuGiTxsqWsHAKm0ZgK5IgCF2iCwGLECs6EEFAJP6shFxg"
            , "Accept: application/json, text/javascript, */*; q=0.01"})
    Observable<QuestionListAnswer> getListAnswerWithRxJava(@Field("goldQuizId") String goldQuizId, @Field("pageCurrent") int pageCurrent, @Field("pageSize") int pageSize);

}
